package com.wxproject.demo.Entity.AO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @author HCJ
 * @date 2021/4/28 22:17
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PublishCommentAO {
    //评论内容
    @NotEmpty(message = "评论内容不能为空")
    private String commentContent;
    //评论层级
    @NotEmpty(message = "评论层级不能为空 一级评论则为1 二级评论则为2")
    private String level;
    //关联ID
    @NotEmpty(message = "关联ID不能为空 根据评论类型而定")
    private String associate;
    //类型
    @NotEmpty(message = "评论类型不能为空 1为文章评论 2为帖子评论 3为视频评论")
    private String type;
    //一级评论ID
    private String secondaryCommentId;
    //@用户的ID
    private String replyId;
}
